﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Upload.aspx.cs" Inherits="Pages_Upload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>UploadFile</title>
</head>
<body onload="LoadForm();">
    <form id="form1" runat="server">
    <div style="float: left; width: 450px; height:21px;">
        <div style="width: 100px; float: left; height: 21px">
            <%=Resources.Resource.ChosesFile %>
            :</div>
        <div style="width: 100px; float: left; height: 21px; margin-left:2px;">
            <asp:FileUpload ID="FileUpload1" runat="server" />
        </div>
        <div style="width: 100px; float: left; height: 21px; margin-left:120px;">
            <asp:Button ID="btnUpload" runat="server" Text="Upload" 
                onclick="btnUpload_Click" /><asp:HiddenField ID="hdfkey" Value="0" runat="server" />
        </div>
    </div>
    <script language="javascript" type="text/javascript">
    LoadForm=function()
    {
    var control=document.getElementById('<%=hdfkey.ClientID %>').value;   
    if(control!='0')
    { alert('<%=Resources.Resource.UploadSuccess %>');
    if(typeof(parent.getImage)=='function')parent.getImage(control);
    }
    }
    </script>
    </form>
</body>
</html>
